package com.eudi.dubbo.common;

import java.io.Serializable;

public class User implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2703617937700216103L;
	private int id = 1;
	private String name = "zhangsan";
	private int sex = 2;
	private int age = 22;
	private String address = "苏州";
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(String.format("id:{%d}, name:{%s}, sex:{%d}, age:{%d}, address:{%s}", id, name, sex, age, address));
		return super.toString();
	}
}
